<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/19
 * Time: 23:38
 */
namespace Admin\Model;
use Think\Model;
class DictModel extends Model{

    //获取所有可用的字典
    public function get_list (){
        return $this->table (array ('yk_dict'=>'dd','yk_estate'=>'es'))
            ->field ('dd.*,es.title')
            ->where ("dd.estate_id=es.id and dd.status=1")
            ->select ();
    }

}